<div class="layui-card">
	<div class="layui-card-body">
		<form class="layui-form" id="editForm" lay-filter="editFormFilter">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">人物</label>
					<div class="layui-input-inline">
						<input name="name" lay-verify="required" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">民族</label>
					<div class="layui-input-inline">
						<select name="nation">
							<option value=""></option>
							<option value="黎族">黎族</option>
							<option value="壮族">壮族</option>
							<option value="华夏族（汉族）">华夏族（汉族）</option>
						</select> 
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">出场时间</label>
					<div class="layui-input-inline">
						<input name="outTime" lay-verify="required" autocomplete="off"
							class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">格言</label>
				<div class="layui-input-block">
					<textarea class="layui-textarea" name="motto"></textarea>
				</div>
			</div>
			<div class="layui-form-item">
	          <div class="layui-input-block">
	              <button class="layui-btn" lay-submit lay-filter="editSubmit" data-submit="/data/submit" data-option={okcallback:false}>立即提交</button>
	          </div>
       		</div>
		</form>
	</div>
</div>
<script type="text/javascript">
layui.use("admin", function() {
	var data = admin.pageData("testEdit").data;
	data && admin.formBind("#editForm", data, "editFormFilter");
	/* data && admin.autoBind("#editForm", "/data/edit", {
		id : data.id
	}, {
		filter : "editFormFilter",
	}); */
})
</script>
